﻿@model PagedList.IPagedList<SEMS.Models.Evaluation_entry>

@{
    ViewBag.Title = "FindOldEntry";
    Layout = "~/Views/Admin/Shared/_Layout.cshtml";
}

<h2>查看以往测评项目</h2>

<table>
    <tr>
        <th>编号</th>
        <th>描述</th>
        <th>模块</th>
        <th>学年</th>
        <th>学期</th>
        <th>日期</th>
        <th>操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>@item.entry_id</td>
            <td>@item.entry_description</td>
            <td>@item.module_id</td>
            <td>@item.entry_school_year</td>
            <td>@item.entry_semester</td>
            <td>@Html.DisplayFor(x => item.entry_date)</td>
            <td>
                @Html.ActionLink("查看", "Details", new{id = item.entry_id}) 
            </td>
        </tr>
    }
</table>
<div>
    Page @(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber)
    of @Model.PageCount
     
    @if (Model.HasPreviousPage)
    {
        @Html.ActionLink("<<", "Index", new { page = 1})
        @Html.Raw(" ");
        @Html.ActionLink("< Prev", "Index", new { page = Model.PageNumber - 1})
    }
    else
    {
        @:<<
        @Html.Raw(" ");
        @:< Prev
    }
     
    @if (Model.HasNextPage)
    {
        @Html.ActionLink("Next >", "Index", new { page = Model.PageNumber + 1})
        @Html.Raw(" ");
        @Html.ActionLink(">>", "Index", new { page = Model.PageCount })
    }
    else
    {
        @:Next >
        @Html.Raw(" ")
        @:>>
    }
</div>
<p>
    @Html.ActionLink("返回", "Index")
</p>
